package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.Banner;
import com.lh.common.entity.admin.BannerDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BannerMapper extends BaseMapper<Banner> {

    List<Banner> queryBannerList(Map<String, Object> params);

    BannerDetail queryBannerById(@Param("bannerId")Long bannerId, @Param("shopType")String type,@Param("banner")String banner);

    int insertBanner(BannerDetail bannerDetail);

    int updateBanner(BannerDetail bannerDetail);

    int deleteBanner(Long[] bannerIds);

    int selectBanner();

    int updateBannerStatus(Map<String, Object> param);

    int queryBanner(Long aid);

    Map<String, Object> queryShopStatus(@Param("shopType")String shopType,@Param("sid")String sid);
}
